<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>玉灵 QQ:7031633 Email:webrx@126.com</title>
    <meta name="keywords" content="keywords">
    <meta name="description" content="description">
</head>
<body>
<script>
    //alert('hello') //提示框
    //window.alert('欢迎')
    //let s = a = b = c = alert
    //s('欢迎你的访问。')
    //b(1+2)

    //let msg = confirm('yes')
    //console.log(msg,typeof(msg))
</script>

<a href="http://www.baidu.com" onclick="return confirm('你是不是是访问百度？')">百度</a>
<hr>

<p>姓名：李四 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="javascript:void(0)" id="del">删除</a></p>
<script>
    let del = document.getElementById('del')
    del.onclick = function(){
        if(confirm('是不是要删除：李四？')) {
            let pp = document.getElementsByTagName('p')[0]
            pp.remove()
        }
    }
</script>
</body>
</html>
